import java.awt.*;
import javax.swing.*;


public class StoreGUI extends JPanel
{
	private SouthPanel _southPanel;
	private WestPanel _westPanel;
	private EastPanel _eastPanel;
	private Store _store;
	private JList _liOfCu;

	public StoreGUI(JFrame parent)
	{
		super(new BorderLayout());
		
		_store = new Store();
		_liOfCu = new JList(_store.getListOfCustomers());
		
		_southPanel = new SouthPanel(_store, parent);
		_westPanel = new WestPanel(_store, _liOfCu, parent);
		_eastPanel = new EastPanel(_store, _liOfCu);
		
		this.add(_westPanel, BorderLayout.CENTER);
		this.add(_eastPanel, BorderLayout.EAST);
		this.add(_southPanel, BorderLayout.SOUTH);
	}
}
